package com.junjie.checkin.request.user;

import lombok.Data;

@Data
public class UserPageRequest {

    private Integer page = 1;      //页码，从1开始

    private Integer pageSize = 10; //每页条数

    private String username;       //用户名
    // 设置默认值
    public void initDefaults() {
        if (page == null || page < 1) {
            page = 1;
        }
        if (pageSize == null || pageSize < 1) {
            pageSize = 10;
        }
    }
}

